﻿<?php if (!defined("MAIN_DIR")) { header("Location: /"); die;} ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo isset($head_title) ? $head_title : "gDolg.ru"; ?></title>
<meta name="Keywords" content="<?php
	echo isset($head_keywords) ? $head_keywords : "";
?>">
<meta name="Description" content="<?php
	echo isset($head_description) ? $head_description : "";
?>">
<link href="/files/css/styles.css" rel="stylesheet" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>

</head>

<body>
	<?php
	if ($user->isAdmin()){
		?>
		<div id="admin-panel">
			<ul>
				<li><a href="/admin">В админку</a></li>
				<li class='right'><a href="/admin/logout">Выход</a></li>
			</ul>
		</div>
		<?php
	}
	?>
	<div id="main">
		<div id="head">
			<div id="share">
				<span>Это важная информация, поделитесь ею с друзьями</span>
				<script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
				<div class="share yashare-auto-init" data-yashareL10n="ru" data-yashareType="button" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir"></div>
			</div>
			<div id='logo'>
				<a href="/"><img src="/files/img/logo.png" /></a>
			</div>
		</div>

		<div class='content'>